﻿/**
 *    Copyright 2006 - 2011 Opera Software ASA
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 *
 **/


overlay {
    background: rgba(0, 0, 0, .5);
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 300; /* Need to clean this up, there is no reason for z-index to ever be this high. */
    padding: 0 30px;
}
overlay.active {
    display: block;
}
overlay-window {
    color: #fff;
    border-radius: 7px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .6);
    background: rgba(40, 40, 40, .9);
    width: 650px;
    border: 2px solid #b1b1b1;
    display: block;
    position: absolute;
    height: 80%;
    max-height: 600px;
    right: 20px;
}
overlay-arrow {
    background: transparent url("../ui-images/overlay_arrow.png");
    width: 17px;
    height: 13px;
    position: absolute;
    top: -12px;
}
overlay-window h2 {
    font-size: 1em;
}
overlay-tabs, overlay-content {
    display: block;
    border: 1px solid #000;
}
overlay-tabs {
    border-radius: 7px 7px 0 0;
    border-bottom: none;
    padding: 5px 5px 0;
    overflow: hidden;
    white-space: nowrap;
}
overlay-tabs tab {
    border-radius: 3px 3px 0 0;
    padding: 0 15px;
    height: 25px;
    line-height: 25px;
    margin-right: 5px;
    color: #bbb;
    display: inline-block;
    float: none;
    position: static;
    border: none;
}
overlay-tabs tab:hover {
     background: rgba(0, 0, 0, .2);
}
overlay-tabs tab.active {
    color: #fff;
    border-color: #000;
    background: rgba(0, 0, 0, .4);
    cursor: auto;
}
overlay-content, overlay-info {
    position: absolute;
    top: 31px;
    bottom: 0;
    right: 0;
    padding: 10px;
    overflow: auto;
}
overlay-content {
    background: rgba(0, 0, 0, .4);
    border-radius: 0 0 7px 7px;
    border-top-width: 0;
    left: 0;
}
overlay-info:not(:empty) + overlay-content {
    padding-right: 200px;
}
overlay-info:not(:empty) {
    z-index: 2;
    border-left: 1px solid rgba(255, 255, 255, .1);
    width: 180px;
}
overlay-info p {
    margin: 0 0 8px;
}
overlay-info ol {
    margin: 0;
    padding: 0 0 0 20px;;
}
overlay-info li {
    margin-bottom: 8px;
}
overlay fieldset, overlay hr {
    border: 1px solid rgba(255, 255, 255, .1);
}
overlay fieldset {
    margin: 10px 5px 10px 5px;
    color: #999;
}
overlay fieldset legend {
    color: #fff;
}
overlay hr {
    border-width: 0 0 1px;
}

